﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using WhiteFox.DAlessio.Patterns.Repository;
using WhiteFox.DAlessio.Agenda.Domain.Model;
using WhiteFox.DAlessio.Agenda.Domain.Repository;

namespace WhiteFox.DAlessio.Testes
{
    [TestClass]
    public class InfraTeste
    {
        [TestMethod]
        public void CreateDatabaseTest()
        {
            NHibernateBase.BuildSchema();
        }

        [TestMethod]
        public void RepositoryTest()
        {
            ContatoRepository repo = new ContatoRepository();
            repo.Save(new Contato() { Nome = "Teste" });

            Assert.IsNotNull(repo.GetAll());
        }

    }
}
